/*
 * @Author: chengsl
 * @Date: 2023-01-10 14:38:07
 * @LastEditors: chengsl
 * @LastEditTime: 2023-01-10 14:41:56
 * @Description: 水波纹图 widgetWaterBall
 */

export default {
  title: {
    text: '占比',
    show: false,
    left: 'center',
    y: '85%',
    textStyle: { color: '#fff', fontSize: 20, fontWeight: 'normal' },
    subtext: '',
    subtextStyle: { color: '#fff', fontWeight: 'normal', fontSize: 20 }
  },
  tooltip: {
    show: true,
    trigger: 'item',
    axisPointer: { type: 'cross' },
    textStyle: { color: '#464646', fontSize: 16, fontWeight: 'normal' },
    formatter: function(params) {
			return `${params.marker} 油量：${params.value * 100}%`
		}
  },
  series: [
    {
      name: '',
      type: 'liquidFill',
      radius: '100%',
      center: ['50%', '50%'],
      data: [0.1656],
      color: [
        {
          type: 'linear',
          x: 0,
          y: 0,
          x2: 0,
          y2: 1,
          colorStops: [
            { offset: 0, color: '#0060FF' },
            { offset: 1, color: '#3BD6FF' }
          ],
          globalCoord: false
        }
      ],
      backgroundStyle: { color: 'rgba(68, 107, 245, 0.3)' },
      label: {
        position: ['50%', '50%'],
        fontSize: 24,
        fontWeight: 'bolder',
        color: '#00afee',
				formatter: function(params) {
					return `${params.value * 100}%`
				}
      },
      outline: {
        show: true,
        borderDistance: 0,
        itemStyle: { borderWidth: 4, borderColor: 'rgba(68, 107, 245, 0.1)' }
      }
    }
  ]
}
